const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const className = new Schema({
    // 班级
    name: {
        type: String,
        required: true
    },
    // 年级
    grade: {
        type: String,
        required: true
    },
    // 所属学院
    // college: {
    //     type: String,
    //     required: true
    // },
    // 创建时间
    createDate: {
        type: Date,
        default: Date.now
    }
})

module.exports = {
    className: mongoose.model('className', className)
}